<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::get('/a', function () {
    return [1,2];
    // echo 12312312;die;
    //throw new \App\Exceptions\InternalException(404);
    //echo 21312312;die;
    //return view('welcome');
    //use InternalException()
});

# 用户模块-用户

Route::post('/auth/login', 'AuthController@login');; //登录接口

Route::any('/auth/register', 'AuthController@register');
//获取用户信息测试
Route::get('/auth/user','AuthController@user');
